package com.ndp.fb.model.business.bo.nfs;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * Created by Mikey.zhaopeng on 2015/3/18 11:52.
 * Email mikey.zhao@ndpmedia.com
 * nfs 服务配置
 */
@Setter
@Getter
@NoArgsConstructor
public class NfsConfig {
    /**
     * 服务器ip
     */
    private String serverIp;
    /**
     * 服务器端口
     */
    private int serverPort;
    /**
     * 字符集
     */
    private String charset;
    /**
     * 访问提供的协议 例如:http/https
     */
    private String protocol;
    /**
     * 访问的域名
     */
    private String domain;
    /**
     * 访问的端口
     */
    private String port;

    public String getFullAddress() {
        return this.getProtocol() + "://" + this.getDomain() + ":" + this.getPort();
    }

}
